package ai.zixing;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class SpringEventTest {
    public static void main(String[] args) {
        ApplicationContext context =
                new AnnotationConfigApplicationContext("ai/zixing");
        Request request = (Request) context.getBean("request");
        //调用方法发布事件
        request.doRequest();
    }
}
